<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body{
            width: 3000px;
            height: 3000px;
        }
    </style>
</head>
<body>
    <script>
        /* 
        
            浏览器可视窗口尺寸  
                1. 宽度:window.innerWidth
                2. 高度:window.innerHeight

                // 包含滚动条在内的 

        
        
        */


        console.log('宽度',window.innerWidth);
        console.log('高度',window.innerHeight);

    </script>
</body>
</html>